/**
 * @since : 2018/3/26 下午2:00
 * @author : fupeng
 */

import React from 'react';

class PageTitle extends React.Component {

    constructor() {
        super()
    }

    componentWillMount() {
        document.title = this.props.title + ' - 后台管理';
    }

    render() {
        return (
            <div className="row">
                <div className="col-lg-12">
                    <h1>{this.props.title}</h1>
                    {this.props.children}
                </div>
            </div>
        );
    }
}

export default PageTitle;